-- GENERATED SPELL FOR [Belnistrasz] --


function spell0_8516(pUnit, Event) --@Arcane Intellect,n/a--
pUnit:FullCastSpellOnTarget(13326,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8516', 635, 1)
end

function spell1_8516(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(9053,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8516', 3000, 1)
end

function spell2_8516(pUnit, Event) --@Frost Nova,Self--
pUnit:FullCastSpellOnTarget(11831,pUnit)
pUnit:RegisterEvent('Sorts_8516', 8350, 1)
end

function Sorts_8516(pUnit, Event)
local choix_sorts_8516 = math.random(0, 2)
if choix_sorts_8516 == 0 then
pUnit:RegisterEvent('spell0_8516', 1, 1)
end
if choix_sorts_8516 == 1 then
pUnit:RegisterEvent('spell1_8516', 1, 1)
end
if choix_sorts_8516 == 2 then
pUnit:RegisterEvent('spell2_8516', 1, 1)
end
end

function mob8516_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8516', math.random(1500, 3000), 1)
end

function mob8516_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8516_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8516_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8516, 1, 'mob8516_Action')
RegisterUnitEvent(8516, 2, 'mob8516_Leave')
RegisterUnitEvent(8516, 3, 'mob8516_Kill')
RegisterUnitEvent(8516, 4, 'mob8516_Die')
